import {http} from '../../http'

//删除数据
const deleteData = (params: any) => http.delete('/service/delete', params)

//新增服务名数据
const createService = (params: any) => http.post('/service/create', params)

//新增服务信息数据
const createServiceInfo = (params: any) => http.post('/service/serviceInfo', params)

//获取服务名数据
const getService = (params: any) => http.get('/service/serviceOptions', params)

//获取服务信息数据
const getServiceInfo = (params: any) => http.get('/service/serviceInfo', params)

//获取用户服务信息数据
const getwxServiceInfo = (params: any) => http.get('/service/wxserviceInfo', params)

//获取用户服务信息数据
const changeServiceInfo = (params: any) => http.put('/service/wxserviceInfo', params)

//获取用户挂号数据
const getwxRegiteredInfo = (params: any) => http.get('/service/wxregistered', params)

//修改用户挂号数据
const changeRegiteredInfo = (params: any) => http.put('/service/wxregistered', params)

export default {
    deleteData,
    createService,
    createServiceInfo,
    getService,
    getServiceInfo,
    getwxServiceInfo,
    getwxRegiteredInfo,
    changeRegiteredInfo,
    changeServiceInfo
}